<!DOCTYPE html>
<!--根据BCP47文档规范, 声明语言为大陆简中普通话-->
<html lang="zh-cmn-Hans-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="./css/bootstrap.min.css">
    <!-- Custom CSS -->
    <link rel="stylesheet" href="./css/style.css">
    <title>PCM脉冲编码调制</title>
</head>
<body>
<header>
    <nav class="navbar" style="background-color: #e3f2fd;">
        <div class="container">
            <a class="navbar-brand text-info" href="pcm.html">PCM脉冲编码调制</a>
        </div>
    </nav>
</header>

<main>
    <div class="container">
        <div class="alert alert-primary" role="alert">
            <P>先点击"开始录音", 录音完成后点击"结束录音"</P>
            <p>嵌入的js脚本默认以16位采样进行PCM编码</p>
            <p>由于浏览器不能直接播放PCM文件, 所以在点击"播放录音"时, 会将PCM编码后的数据转为WAV格式并播放</p>
            <p>同时自动下载此WAV文件</p>
        </div>
        <div class="text-center">
            <div class="btn-group" role="group" aria-label="Web PCM">
                <button type="button" class="btn btn-outline-primary" id="start">开始录音</button>
                <button type="button" class="btn btn-outline-primary" id="end">结束录音</button>
                <button type="button" class="btn btn-outline-primary" id="play">播放录音</button>
            </div>
        </div>
    </div>
</main>

<footer class="bg-light">
    <div class="container">
        <nav class="nav">
            <a class="nav-link text-secondary">
                © 2019 周淦清 计科11704 201703407
            </a>
        </nav>
    </div>
</footer>

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script type="text/javascript" src="./js/jquery.min.js" charset="UTF-8"></script>
<!-- Custom JavaScript -->
<script type="text/javascript" src="./js/pcm.js" charset="UTF-8"></script>
</body>
</html>